package com.hualian.coupon.util;

import lombok.Getter;

/**
 * @author Lxd
 * @Description TODO
 * @date 2020/10/22 5:58
 * @Version 1.0
 */
@Getter
public enum ResultCode {

    //结果响应体
    SUCCESS(1000, "操作成功"),

    FAILED(1001,"响应失败"),

    VALIDATE_FAILED(1002, "参数校验失败"),

    ERROR(5000, "未知错误");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
